package com.platform.controller.backend;

import com.platform.common.ServerResponse;
import com.platform.service.IEnumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/enumController/")
public class EnumController {

    @Autowired
    private IEnumService iEnumService;

    @RequestMapping(value = "selectByParam.do",method = RequestMethod.GET)
    @ResponseBody
    public ServerResponse<List<Map>> selectByParam(@RequestParam Map paramMap){
        return iEnumService.selectByParam(paramMap);
    }
}
